﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DataObjects.Interfaces;
using DataObjects.Enums;

namespace DataObjects.Behaviours
{
    public class DefensiveBehaviour : BaseBehaviour
    {
        public DefensiveBehaviour(GameObject gObject)
            : base(gObject)
        {
            BahaviourType = BahaviourTypes.Defensive;
        }

        protected override void DetermineTurnPowerLevels()
        {
            gameObj.ShieldPower = (int)(gameObj.AvailablePower * 0.7);
            gameObj.WeaponPower = (int)(gameObj.AvailablePower * 0.2);
            gameObj.EnginePower = (int)(gameObj.AvailablePower * 0.1);
        }
    }
}
